package net.maku.events.dao;

import net.maku.events.entity.UserPointsRecordsEntity;
import net.maku.events.vo.RankMemberUserVO;
import net.maku.events.vo.RankOrgVO;
import net.maku.framework.mybatis.dao.BaseDao;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Author: qr
 * @Date: 2025/3/25 22:12
 * @Version 1.0
 */
@Mapper
public interface UserPointsRecordsDao extends BaseDao<UserPointsRecordsEntity> {

    /**
     * 获取个人排行榜
     *
     * @param businessId   活动id
     * @param businessType 活动类型
     * @return 结果
     */
    List<RankMemberUserVO> getRank(@Param("businessId") Long businessId, @Param("businessType") Integer businessType);

    List<RankMemberUserVO> getRankPage(@Param("businessId") Long businessId, @Param("businessType") Integer businessType);

    /**
     * 获取单位排行榜
     *
     * @param businessId   活动id
     * @param businessType 活动类型
     * @return 结果
     */
    List<RankOrgVO> getRankOrg(@Param("businessId") Long businessId, @Param("businessType") Integer businessType);
}
